import {Text, View} from 'react-native';
import React, {lazy, Suspense, Component} from 'react';
import {createNativeStackNavigator} from '@react-navigation/native-stack';

import {NavigationContainer} from '@react-navigation/native';
import App from '@/screens/App';

// const Home = lazy(() => import('../screens/Home'));
// const About = lazy(() => import('../screens/About'));

const Stack = createNativeStackNavigator();

export default class Navigator extends Component {
  render() {
    return (
      <NavigationContainer>
        <Stack.Navigator
          screenOptions={{
            headerShown: false,
          }}>
          <Stack.Screen name="App" component={App} />
        </Stack.Navigator>
      </NavigationContainer>
    );
  }
}
